package com.xinlong.service.impl;

import com.xinlong.dao.IVehicledao;
import com.xinlong.entity.Vehicle;
import com.xinlong.service.IVehiceService;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class VehiceServiceimpl implements IVehiceService {

    @Autowired
    IVehicledao vehicledao;

    public List<Vehicle> selectVehicle() {
        return vehicledao.selectVehicle();
    }

    public void sevaVehicle(Vehicle vehicle) {
        vehicledao.sevaVehicle(vehicle);
    }

    public void delVehicle(Integer id) {
        vehicledao.delVehicle(id);
    }

    public void upVehicle(Vehicle vehicle) {
        vehicledao.upVehicle(vehicle);
    }
}
